Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: directly subscribe from indexer #32

Closed
wants to merge 17 commits into from

Conversation

beer-1
Copy link
Member

@beer-1 beer-1 commented Jul 11, 2024

No description provided.

beer-1 and others added 16 commits May 28, 2024 16:32
whenever ethereum tx is converted into cosmos tx by ConvertEthereumTxToCosmosTx, the value is converted to cosmos fee unit from wei.
so when convert the cosmos tx to back the original ethereum tx, we should convert the value back to wei to get original ethereum tx.
* feat: new eth apis, refactor: code structures

new eth apis
- GetStorageAt
- GetCode

refactor
- Restricted the scope of access for each namespace API (instead of accessing the backend directly, now access is through a scoped wrapper)
- Also renamed files and repositioned some methods within the backend directory to better reflect their purpose

* fix: not implemented txpool api

temp disable txpool api because we don't have any implementation

* fix: change event type for extract logs

* add cap for filters

* add filter system and apis

* fix comment

Co-authored-by: zsystm <[email protected]>

* delete unused interfaces and comments

* fix varible and function naming

* add TODO comments

* delete unused functions

* add error handling

* Set websocket params to prevent timeout

* fix: change GetLogsByHeight interface

* chore: change variable names from tm to comet

* docs: add comments about websocket client params

* fix: go.mod and go.work.sum

ran the followings for this commit:
- go mod tidy
- go work sync

* update: cometbft dep

current version of cometbft which minievm uses have a bug(cometbft/cometbft#3264 (comment)) which makes transaction broadcasting unavailable.

---------

Co-authored-by: jason song <[email protected]>
Co-authored-by: jasonsong0 <[email protected]>
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

Attention: Patch coverage is 14.05024% with 2190 lines in your changes missing coverage. Please review.

Project coverage is 27.39%. Comparing base (44ba6a4) to head (64d8e45).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
- Coverage   31.67%   27.39%   -4.28%     
==========================================
  Files          68       98      +30     
  Lines        8439    10900    +2461     
==========================================
+ Hits         2673     2986     +313     
- Misses       5408     7503    +2095     
- Partials      358      411      +53     
Files Coverage Δ
app/genesis.go 91.97% <100.00%> (+0.30%) ⬆️
app/test_helpers.go 79.77% <100.00%> (+0.22%) ⬆️
x/evm/contracts/counter/Counter.go 0.00% <ø> (ø)
x/evm/contracts/erc20_factory/ERC20Factory.go 0.00% <ø> (ø)
x/evm/keeper/erc721.go 43.63% <100.00%> (ø)
x/evm/keeper/genesis.go 60.49% <100.00%> (+0.49%) ⬆️
x/evm/keeper/keeper.go 66.66% <ø> (ø)
x/evm/types/params.go 77.27% <100.00%> (+1.08%) ⬆️
app/encoding.go 44.11% <33.33%> (ø)
app/ante/ante.go 56.86% <50.00%> (-2.72%) ⬇️
... and 40 more

@beer-1 beer-1 changed the title [WIP] feat: directly subscribe from indexer feat: directly subscribe from indexer Jul 12, 2024
@beer-1 beer-1 self-assigned this Jul 12, 2024
@beer-1 beer-1 closed this Jul 12, 2024
@beer-1 beer-1 deleted the feat/directly-subscribe-from-indexer branch July 12, 2024 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants